﻿namespace FuiouMerchantAccess {
    /// <summary>
    /// 商户入网配置
    /// </summary>
    public class Config {
        /// <summary>
        /// 机构号
        /// </summary>
        public string InsCd { get; set; } = "08A9999999";

        /// <summary>
        /// 秘钥
        /// </summary>
        public string Key { get; set; } = "040f23510fbf4b34ae3895272e83c58c";

        /// <summary>
        /// 请求地址
        /// </summary>
        public string Url { get; set; } = "http://www-1.fuiou.com:28090/wmp/wxMchntMng.fuiou";

        /// <summary>
        /// 编码格式
        /// </summary>
        public string Charset { get; set; } = "GBK";
        public object BaseUrl { get; set; }
    }

    /// <summary>
    /// 营业执照类型
    /// </summary>
    public class LicenseType {
        /// <summary>
        /// 营业执照
        /// </summary>
        public const string BusinessLicense = "0";

        /// <summary>
        /// 三证合一
        /// </summary>
        public const string ThreeCertifInOne = "1";

        /// <summary>
        /// 身份证(一证下机)
        /// </summary>
        public const string IDCard = "A";

        /// <summary>
        /// 个体户
        /// </summary>
        public const string SelfEmployed = "B";

        /// <summary>
        /// 事业单位
        /// </summary>
        public const string Institutions = "2";
    }

    /// <summary>
    /// 结算类型
    /// </summary>
    public class SettleTp {
        /// <summary>
        /// 自动结算T1
        /// </summary>
        public const string AutomaticSettlementT1 = "1";

        /// <summary>
        /// 手动结算
        /// </summary>
        public const string ManualSettlement = "2";

        /// <summary>
        /// 自动结算D1
        /// </summary>
        public const string AutomaticSettlementD1 = "3";

        /// <summary>
        /// 定时结算
        /// </summary>
        public const string TimedSettlement = "4";
    }

    /// <summary>
    /// 子商户类型
    /// </summary>
    public class MchntTp {
        /// <summary>
        /// 微信
        /// </summary>
        public const string WeChat = "1";

        /// <summary>
        /// 支付宝
        /// </summary>
        public const string AliPay = "2";

        /// <summary>
        /// 微信绿洲
        /// </summary>
        public const string WeChatOasis = "3";

        /// <summary>
        /// 支付宝蓝海
        /// </summary>
        public const string AliPayBlueOcean = "4";

        /// <summary>
        /// 翼支付
        /// </summary>
        public const string WingPay = "5";

        /// <summary>
        /// 银联二维码
        /// </summary>
        public const string UnionPayQRCode = "6";
    }
}
